#ifndef SOUNDVISUAL_H_
#define SOUNDVISUAL_H_
#include "main.h"
#include "tim.h"

#define Visual_On()  HAL_TIM_PWM_Start(&htim9, TIM_CHANNEL_1)
#define Sound_On()  HAL_TIM_PWM_Start(&htim9, TIM_CHANNEL_2)
#define Visual_Off()  HAL_TIM_PWM_Stop(&htim9, TIM_CHANNEL_1)
#define Sound_Off()  HAL_TIM_PWM_Stop(&htim9, TIM_CHANNEL_2)

//开启声光
void sv_open(void);
//关闭声光
void sv_close(void);
#endif
